<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>第二页</title>
</head>
<body>
<button id="btnPre">上一页</button>
</body>
<script>

     document.getElementById('btnPre').onclick = function () {
         history.back();
         history.go(-1);
     }


</script>
</html>